function sum(a,b){
    return a+b;
}

var result  = sum(sum(3,2),3)
console.log(result);